package com.example.JavaWebApi.model.entity.systemEntity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @ClassName: Userinfo
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author 杨泽
 * @date 2022-06-15
 */
@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("sys_userinfo")
public class Userinfo implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 主键
     */
    @TableId(value = "ID",type = IdType.AUTO)
    private Integer Id;


    /**
     * 用户姓名
     */
    @TableField("UserName")
    private String UserName;


    /**
     * 登录账号
     */
    @TableField("UserAccount")
    private String UserAccount;


    /**
     * 密码
     */
    @TableField("UserPassWord")
    private String UserPassWord;


    /**
     * 性别 0男 1女
     */
    @TableField("UserSex")
    private String UserSex;


    /**
     * 用户手机
     */
    @TableField("UserPhone")
    private String UserPhone;


    /**
     * 用户权限Code
     */
    @TableField("UserRole")
    private String UserRole;


    /**
     * 身份证号
     */
    @TableField("IdNumber")
    private String IdNumber;


    /**
     * 创建人ID
     */
    @TableField("CreateBy")
    private Integer CreateBy;
    @TableField("Remark")
    private String Remark;
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private List<Orginfo> orgInfoList;
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String orgName;
    @TableField(exist = false)
    private List<Integer> orgIdList;
    @TableField(exist = false)
    private List<Integer> roleIdList;
    @TableField(exist = false)
    private String userRoleName;
}